function efficiency_load_exp()
close all;
clc;

%% Efficiency vs Iload

figure;
cc=hsv(5);
marker={'x-'; 'o-';'^-';'s-'};

% M1 = csvread('./data/hard_charging/250k_150V_3A_short.dat',1,0);
% efficiency=M1(2:end,7);
% load=M1(2:end,4);
% plot(load,efficiency*100,marker{1},'color','r','LineWidth',0.8);
% hold on;

% M1 = csvread('./data/hard_charging_old/SC_hard_90.dat',1,0);
% efficiency=M1(2:end,7);
% load=M1(2:end,4);
% plot(load,efficiency,marker{1},'color',cc(2,:),'LineWidth',1.2);


M4 = csvread('./data/soft_charging_1/SC_50k_120V_short.dat',1,0);
efficiency=M4(1:end,7);
load=M4(1:end,4);
plot(load,efficiency*100,marker{1},'color','b','LineWidth',1.2);
hold on;
M5 = csvread('./data/soft_charging_1/SC_100k_120V_short.dat',1,0);
efficiency=M5(1:end,7);
load=M5(1:end,4);
plot(load,efficiency*100,marker{2},'color','b','LineWidth',1.2);


M5 = csvread('./data/split_phase/SC_50k_18_120V_no.dat',1,0);
efficiency=M5(1:end,7);
load=M5(1:end,4);
plot(load,efficiency*100,marker{3},'color','b','LineWidth',1.2);


legendInfo = {'Vin= 120V, soft-charging 1, 50k kHz','Vin= 120V, soft-charging 1, 100 kHz','Vin= 120V, split-phase, 50 kHz'};

xlabel('Load current (A)');
ylabel('Efficiency (%)');
legend(legendInfo,'Location','SouthEast');
grid on;
% ylim([85 95]);
% xlim([0 3.5]);

set(gcf, 'Position', [200 200 450 300])
set(gcf,'PaperPositionMode','auto')
% print('-depsc2', './images/efficiency_unregulated_compare_exp');
% matlab2tikz( '../Paper/images/efficiency_unregulated_exp.tikz',  'height', '\figureheight', 'width', '\figurewidth','showInfo', false);

